package com.region.integral.common_user.pojo;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity()
@Table(name="TB_INTEGRAL_COMMON_USER_INTEGRAL")
public class CUIEntity {
	private int id;
	private int userid ;
	private int currIntegral ;
	private int maxIntegral;
	private int loginTimes;
	private Date lastLoginDate;
	private int commentWeiBoNum;
	private int commentGoodsNum;
	private int groupPeopleNum;
	private int inviteFriendNum;
	private int issueActivityNum;
	private int joinActivityNum;
	private int joinGroupNum;
	private int replyCommentNum;
	private int sendWeiBoNum;
	private int unsubscribeGoodsNum;
	private KCurrencyEntity kCurrency;
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(nullable=false,unique=true)
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getCurrIntegral() {
		return currIntegral;
	}
	public void setCurrIntegral(int currIntegral) {
		this.currIntegral = currIntegral;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getMaxIntegral() {
		return maxIntegral;
	}
	public void setMaxIntegral(int maxIntegral) {
		this.maxIntegral = maxIntegral;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getLoginTimes() {
		return loginTimes;
	}
	public void setLoginTimes(int loginTimes) {
		this.loginTimes = loginTimes;
	}
	public Date getLastLoginDate() {
		return lastLoginDate;
	}
	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getCommentWeiBoNum() {
		return commentWeiBoNum;
	}
	public void setCommentWeiBoNum(int commentWeiBoNum) {
		this.commentWeiBoNum = commentWeiBoNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getCommentGoodsNum() {
		return commentGoodsNum;
	}
	public void setCommentGoodsNum(int commentGoodsNum) {
		this.commentGoodsNum = commentGoodsNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getGroupPeopleNum() {
		return groupPeopleNum;
	}
	public void setGroupPeopleNum(int groupPeopleNum) {
		this.groupPeopleNum = groupPeopleNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getInviteFriendNum() {
		return inviteFriendNum;
	}
	public void setInviteFriendNum(int inviteFriendNum) {
		this.inviteFriendNum = inviteFriendNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getIssueActivityNum() {
		return issueActivityNum;
	}
	public void setIssueActivityNum(int issueActivityNum) {
		this.issueActivityNum = issueActivityNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getJoinActivityNum() {
		return joinActivityNum;
	}
	public void setJoinActivityNum(int joinActivityNum) {
		this.joinActivityNum = joinActivityNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getJoinGroupNum() {
		return joinGroupNum;
	}
	public void setJoinGroupNum(int joinGroupNum) {
		this.joinGroupNum = joinGroupNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getReplyCommentNum() {
		return replyCommentNum;
	}
	public void setReplyCommentNum(int replyCommentNum) {
		this.replyCommentNum = replyCommentNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getSendWeiBoNum() {
		return sendWeiBoNum;
	}
	public void setSendWeiBoNum(int sendWeiBoNum) {
		this.sendWeiBoNum = sendWeiBoNum;
	}
	@Column(nullable=false,columnDefinition="int default 0")
	public int getUnsubscribeGoodsNum() {
		return unsubscribeGoodsNum;
	}
	public void setUnsubscribeGoodsNum(int unsubscribeGoodsNum) {
		this.unsubscribeGoodsNum = unsubscribeGoodsNum;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="KCURRENCYID")
	public KCurrencyEntity getkCurrency() {
		return kCurrency;
	}
	public void setkCurrency(KCurrencyEntity kCurrency) {
		this.kCurrency = kCurrency;
	}
	
	
}
